//
//  ScoreViewCell.m
//  BallRankingProject
//
//  Created by lanou3g on 15/5/29.
//  Copyright (c) 2015年 luojian. All rights reserved.
//

#import "ScoreViewCell.h"

@implementation ScoreViewCell


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
       
        [self setimage];
        
    }

    return self;


}

- (void)setimage
{
    CGRect frame=[UIScreen mainScreen].bounds;
    //CGRect fram=CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(self.frame));
    frame.size.height=60;
    self.frame=frame;
    self.lable1=[[UILabel alloc] initWithFrame:CGRectMake(0, (CGRectGetHeight(self.frame)-self.frame.size.width/10)/2, self.frame.size.width/10, self.frame.size.width/10)];
    
    self.imageViews=[[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width/10, 5, CGRectGetHeight(self.frame)-10, CGRectGetHeight(self.frame)-10)];
    self.lable2=[[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/10 *2+10, 0, self.frame.size.width/10 *2, CGRectGetHeight(self.frame))];
    self.lable3=[[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/10 *4, 0, self.frame.size.width/10, CGRectGetHeight(self.frame))];
    self.lable4=[[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/10 *5, 0, self.frame.size.width/10, CGRectGetHeight(self.frame))];
    self.lable5=[[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/10 *6, 0, self.frame.size.width/10, CGRectGetHeight(self.frame))];
    self.lable6=[[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/10 *7, 0, self.frame.size.width/10, CGRectGetHeight(self.frame))];
    self.lable7=[[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/10 *8, 0, self.frame.size.width/10, CGRectGetHeight(self.frame))];
    self.lable8=[[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width/10 *9, 0, self.frame.size.width/10, CGRectGetHeight(self.frame))];
    _lable5.font=[UIFont systemFontOfSize:10.0];
       _lable2.font=[UIFont systemFontOfSize:10.0];
    //_lable1.font=[UIFont systemFontOfSize:10.0];
    _lable3.font=[UIFont systemFontOfSize:10.0];
    _lable4.font=[UIFont systemFontOfSize:10.0];
    _lable6.font=[UIFont systemFontOfSize:10.0];
    _lable7.font=[UIFont systemFontOfSize:10.0];
_lable8.font=[UIFont systemFontOfSize:10.0];
   // self.backgroundColor=[UIColor colorWithRed:0.946 green:0.418 blue:1.000 alpha:1.000];
    
    [self.contentView addSubview:_lable1];
    [self.contentView addSubview:_lable2];
    [self.contentView addSubview:_lable3];
    [self.contentView addSubview:_lable4];
    [self.contentView addSubview:_lable5];
    [self.contentView addSubview:_lable6];
    [self.contentView addSubview:_lable7];
    [self.contentView addSubview:_lable8];
    [self.contentView addSubview:_imageViews];
   

}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
